//
// Created by Thinkpad on 2025/11/11.
//

#include "dog.h"

#include <iostream>
using namespace std;

dog::dog(string_view name_param,string_view breed_param,unsigned int age_param) {
    m_name = name_param;
    m_breed = breed_param;
    m_age=age_param;
}

// Getters
string_view dog::get_name() {
    //return m_name;
    return this->m_name;
}

string_view dog::get_breed() {
    return m_breed;
}

unsigned int dog::get_age() {
    return m_age;
}

// Setters
void dog::set_name(string_view name_param) {
    //m_name = name_param;
    this->m_name = name_param;
}

void dog::set_breed(string_view breed_param) {
    m_breed = breed_param;
}

void dog::set_age(unsigned int age_param) {
    m_age = age_param;
}


void dog::print_info() {
    cout << "Dog(" << this << "):[ name: " << this->m_name
    << ", breed: " << this->m_breed << ",age :" << this->m_age << endl;
}

